package com.serookie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.serookie.entity.Result;
import com.serookie.entity.SysUser;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/5/6 19:45
 */
public interface SysUserService extends IService<SysUser>{
    //登录之后返回token
    Result login(String username, String password, HttpServletRequest request);
    SysUser getSysUserByUsername(String username);
    //查询所有管理员及权限
    List<SysUser> findAll();
    public Integer goodsCount();
    public Integer maleCount();
}
